import request from '@/utils/request'

export function getlist() {
    return request({
      url: '/topic/list',
      method: 'get'
    })
  }
export function delTopic(data){
  return request({
    url: '/topic/delTopic/'+data,
    method: 'get'
  })
}
export function getTopic(data){
  return request({
    url: '/topic/getTopic/'+data,
    method: 'get'
  })
}

export function saveTopic(data){
  return request({
    url: '/topic/saveOrUpdateTopicEntity',
    method: 'post',
    data
  })
}